import javafx.geometry.Side;

public class sum_digui {
    public int sum(int []arr,int l){
        int sum=0;
        if(l<arr.length){
            sum(arr,l++);
            sum+=arr[l];
        }
        return sum;
    }
    public static void main(String[] args) {
        
    }
}
